package com.frxuexi.park2212.payment

import android.widget.CheckBox
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.PayBeanItem
import com.frxuexi.park2212.R

class PayDeatilAdapter:BaseQuickAdapter<PayBeanItem,BaseViewHolder>(R.layout.item_paydetail) {
    override fun convert(helper: BaseViewHolder, item: PayBeanItem) {
        helper.setText(R.id.paydetail_type,item.chargeType)
        helper.setText(R.id.paydetail_time,"${item.effectiveDate}")
        helper.setText(R.id.paydetail_money,"￥${item.receivableAmount}")
        helper.getView<CheckBox>(R.id.paydetail_cb).isChecked=item.isCheck!!
    }
}